//
//  ExtensionUIDevice.swift
//  ios_swift_demo1
//
//  Created by liutao on 2020/7/24.
//  Copyright © 2020 lt. All rights reserved.
//

import UIKit

extension UIDevice {
    
    //判断是不是刘海屏设备
    public func isiPhoneXorLater()->Bool{
        let screenHieght = UIScreen.main.nativeBounds.size.height
        if screenHieght == 2436 || screenHieght == 1792 || screenHieght == 2688 || screenHieght == 1624 {
            return true
        }
        return false
    }
}





